<!-- 
	Tollbar com o comportamento padrão de um CRUD
 -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:cc="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<cc:interface>
	<cc:attribute name="managedbean" required="true"></cc:attribute>
	<cc:attribute name="value" required="true"></cc:attribute>
	<cc:attribute name="widgetVar"></cc:attribute>
	<cc:attribute name="var" required="true"></cc:attribute>
	<cc:attribute name="update"></cc:attribute>
	<cc:attribute name="rowSelectListener"></cc:attribute>
	<cc:attribute name="binding"></cc:attribute>
	<cc:attribute name="onRowSelectComplete"></cc:attribute>
	<cc:attribute name="selection"></cc:attribute>
</cc:interface>
<cc:implementation>

	<p:dataTable value="#{cc.attrs.value}" selectionMode="single"
		var="#{cc.attrs.var}" dblClickSelect="true"
		onRowSelectComplete="#{cc.attrs.onRowSelectComplete}"
		update="frmPagina"
		rowSelectListener="#{cc.attrs.rowSelectListener}"
		selection="#{cc.attrs.selection}" binding="#{cc.attrs.binding}">
		
		<cc:insertChildren></cc:insertChildren>
		
	</p:dataTable>
</cc:implementation>
</html>